package com.chuanke.ckfamily.service.user;

import java.util.List;

import com.chuanke.ckfamily.dao.user.model.FriendApply;
import com.chuanke.ckfamily.dao.user.model.FriendApplyRecord;
import com.chuanke.ckfamily.service.exception.CFException;
import com.weijie.core.IBaseBiz;

public interface FriendApplyService extends IBaseBiz<FriendApply> {

	String getApplyHi(Long request, String targerNo);

	void deleteApply(Long request, Long response) throws CFException;

	/**
	 * 申请用户好友
	 * 
	 * @param requester
	 * @param userNo
	 * @param hi
	 * @param remark
	 * @throws Exception
	 */
	void applyFriend(Long requester, String userNo, String hi, String remark) throws CFException, Exception;

	/**
	 * 获取被申请记录
	 *
	 * @param uid
	 * @return
	 * @throws Exception
	 */
	List<FriendApplyRecord> getFriendApplyRecord(Long uid) throws CFException, Exception;

	/**
	 * 审核好友申请
	 * 
	 * @param uid
	 * @param aid
	 * @param op
	 * @throws Exception
	 */
	void auditApply(Long uid, Long aid, int op) throws CFException, Exception;

	/**
	 * 获取好友申请记录
	 * 
	 * @param requester
	 * @param responser
	 * @return
	 */
	FriendApply getFriendApply(Long requester, Long responser);
}